package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.db.QQuestion;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface QQuestionMapper extends BaseMapper<QQuestion> {


    //随机查询十个题目
    @Select("select  *  from  tb_qquestion where level=#{level} order by rand() limit 10")
    List<QQuestion> findQuestion(String level);
}
